import React from 'react'

export default function Page(props) {
  const haslist =props.content && props.content.length
  const list = haslist? props.content : []
  return (
    <html>
      <head>
        <title>{props.title}</title>
        <link rel='stylesheet' href='/stylesheets/style.css' />
      </head>
      <body>
        <h1>{props.title}</h1>
        <p>Welcome to {props.content}</p>
        <p>article datas count {haslist}</p>
      </body>
    </html>
  )
}

